import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import * as Icons from '@element-plus/icons-vue';


import App from './App.vue'
import router from './router'

const app = createApp(App)

app.use(createPinia())
app.use(ElementPlus)
app.use(router)

// 全局注册所有图标
Object.keys(Icons).forEach(key => {
  app.component(key, Icons[key]);
});

// 注册全局组件
import Space from '@/components/Space.vue';
app.component('Space', Space);

app.mount('#app')
